<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <form action="" method="post">
        @csrf
        <!-- <input type="hidden" name="_token" value="{{csrf_token()}}"> -->
        姓名:<input type="text" name="name" >
        年龄：<input type="text" name="age" >
        <!-- {{csrf_field() }} -->
        <!-- 这三个方法都可以用 最推荐@csrf -->
        <input type="submit" value="提交">
    </form>
</body>
</html>